Skip to main content

Operation Base Activity Lab 2

Objective

Create a workflow that gives us the ability to edit the properties of a Person in EmpowerID using the Operation Base

Credentials

User ID: Test
Password: P@$$w0rd

  1. Start the 20331B-NYC-DC-05 virtual machine. Wait for the virtual machine to display the Desktop.

  2. On your Desktop, Right-click on Workflow Studio (WFS), and then click Run as administrator. Workflow Page

  3. Wait for WFS to start and enter your credentials.

Workflow Page
Workflow Page
  1. In Solution Explorer, right-click on the Developer Packages folder, create a new folder called “DemoLabs” and click the Ok button. Workflow Page

  2. Add New Folder dialog box will appear from it; select the following options.

    • User Interface > Lookup Control
    • User Interface > Forms
    • User Interface > UI Pages
    • Workflows > Applications And click the Ok button. Workflow Page
  3. Expand the Developer Packages folder, find the DemoLabs folder, expand it under the DemoLabs folder, expand the User Interface folder right-click on the Forms folder, hover your mouse on the New User Interface option and Click on Form. Workflow Page

  4. Wait for the Form designer to be loaded.

  5. Click on the Save button to save your Form and give it the name Training_EditUserForm. Workflow Page

  6. Right-click on the Form Data, then click Add Object and go to the Rbac Components tab. From there, select the Person component and click the Add button. Workflow Page

  7. Double-click on Person1 and rename it to ObjectivePerson. Workflow Page

  8. Now expand the ObjectivePerson component and drag and drop the following fields/columns on the Form Designer.

  • FirstName
  • Last Name
  • Street Address
  • City
  • Postal Code Workflow Page
  1. Now double-click on Tab1 and rename it to Person Info, then double-click on Tab1Section1 and give it the name Person Information, then double-click on Tab1Section2 and give it the name Address Information. Lastly, double-click on FirstName and LastName fields and put a space between them. Workflow Page

  2. Now right-click on the First Name and Last Name text box one by one and set the IsReadOnly property to true. Workflow Page

  3. This is how your final form will look like. Workflow Page

  4. Now click on publish button to publish your Form. The publishing dialog box will appear. Click on the Next button twice to Publish the Form. Workflow Page

  5. Once published successfully, click on the Ok button Workflow Page

  6. Click Yes when prompted to restart Workflow Studio. Workflow Page

  7. Once workflow has been restarted it’s time to create a lookup control.

  8. Expand the Developer Packages folder, find the DemoLabs folder, expand it under the DemoLabs folder, expand the User Interface folder right-click on the Lookup Controls folder, hover your mouse on the New User Interface option and Click on Lookup. Workflow Page

  9. Wait for the Lookup designer to be loaded.

  10. Click on the Save button to save your Lookup and give it the name Training_EditPersonLK. Workflow Page

  11. From the Component Object, select PersonView, and from the Data Method, select the GetAllSearchAdvanced method. Workflow Page

  12. Click on the Lookup Designer from the top bar and select the Set Grid Type option. Workflow Page

  13. The Set Grid Type dialog box will appear from the dropdown select the Person and click on the Ok button. Workflow Page

  14. Now click on publish button to publish your Lookup. The publishing dialog box will appear to click on the Next and then Next button again to Publish the Lookup. Workflow Page

  15. Once publish successfully click on the Ok button. Workflow Page

  16. Now it will ask you to restart the workflow Studio, click on the Yes button. Workflow Page

  17. Once workflow studio has been restarted it’s time to create a workflow and placed our forms and lookup controls onto it.

  18. Expand the Developer Packages folder, find the DemoLabs folder expand it under the DemoLabs folder, expand the Workflows folder right click on the Applications folder, hover your mouse on the New Workflow option and Click on Flow Chart Workflow.

  19. Now, first drag the Lookup control onto your form, and in its description property, write Load All Users and in its Name property write LoadAllUsersLK. Then, drag the Form control onto the form, and in its description property, write Edit Person Attribute and its Name property write EditPersonAttributeForm. Lastly, drag and drop the EditPersonMultiOperations activity onto your form, and in its description property, write Update Person Attribute. Next, connect all three of these activities with lines. Please refer to the screenshot below. Workflow Page

  20. Now, navigate to the Bindings tab and perform the binding as follows. (We've previously learned about bindings in the Bindings module, and we are applying the same process here passing the selected user from a lookup control to our form.) and adding one more binding and that is passing the ObjectivePerson component of our form and binding it to the Form_TargetPerson property of EditPersonMultiOperations. Workflow Page

  21. Now right click on the EditPersonMultiOperations activity and choose the Enable/Disable Executing Operations option. Workflow Page

  22. From the Enable/Disable Resource Operations dialog box Enable the Edit Person Organization Attributes and Edit Address operations. Workflow Page

  23. Now click on the save button to save your Workflow and name it Training_EditPerson

  24. After saving it publish your workflow from the Workflow Studio.

  25. Now publish your Form, Lookup control and Workflow by going to the EmpowerID Web UI and test your workflow.

  26. I ran my workflow, and the first image displays my Lookup Control, while the second one shows my Form. As you can observe, the Street Address, City, and Postal Code fields are empty. Let me input some values and submit it. Afterward, I'll re-run the workflow to verify whether the fields have been updated or not.

Workflow Page
Lookup Control
Workflow Page
Form
  1. I reran the workflow to see if the changes I made took place or not and it seems like it worked fine. You can also verify your changes by accessing the database. Refer to the second image.
Workflow Page
EmpowerID UI
Workflow Page
SQL Database
  1. End